package cn.ingrun.first_spring_cloud_client2.remote;

import cn.ingrun.first_spring_cloud_client2.models.ResponseJson;
import cn.ingrun.first_spring_cloud_client2.remote.models.User;
import cn.ingrun.first_spring_cloud_client2.utils.MyResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient( name="eureka-provider", fallback = HelloFallBack.class )
public interface Hello {

    @GetMapping("/")
    String hello();

    @GetMapping("/getUser")
    ResponseEntity<ResponseJson> get(@RequestParam("id")int id);

}
